package com.six.sso.feign;

import com.six.core.entity.Permission;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @author: WangPeng
 * @createTime: 2023/02/27 10:26
 * @description:
 * @version: v1.0
 */
@FeignClient(value = "caicaibang-permission")
public interface PermissionFeign {
    @GetMapping("/system/permission/findPermission/")
    List<Permission> getPermissionByUserId(Integer userId);
}

